package com.googlecode.maurersmarbles;

public class Card {
	
	public static final int CARD_ID_A = 0;
	public static final int CARD_ID_2 = 1;
	public static final int CARD_ID_3 = 2;
	public static final int CARD_ID_4 = 3;
	public static final int CARD_ID_5 = 4;
	public static final int CARD_ID_6 = 5;
	public static final int CARD_ID_7 = 6;
	public static final int CARD_ID_8 = 7;
	public static final int CARD_ID_9 = 8;
	public static final int CARD_ID_10 = 9;
	public static final int CARD_ID_J = 10;
	public static final int CARD_ID_Q = 11;
	public static final int CARD_ID_K = 12;
	
	public static final int CARD_VALUE_A = 1;
	public static final int CARD_VALUE_2 = 2;
	public static final int CARD_VALUE_3 = 3;
	public static final int CARD_VALUE_4 = -4;
	public static final int CARD_VALUE_5 = 5;
	public static final int CARD_VALUE_6 = 6;
	public static final int CARD_VALUE_7 = 7;
	public static final int CARD_VALUE_8 = 8;
	public static final int CARD_VALUE_9 = 9;
	public static final int CARD_VALUE_10 = 10;
	public static final int CARD_VALUE_J = 11;
	public static final int CARD_VALUE_Q = 12;
	public static final int CARD_VALUE_K = 13;
	public static final int[] CARD_VALUES = {
		CARD_VALUE_A,
		CARD_VALUE_2,
		CARD_VALUE_3,
		CARD_VALUE_4,
		CARD_VALUE_5,
		CARD_VALUE_6,
		CARD_VALUE_7,
		CARD_VALUE_8,
		CARD_VALUE_9,
		CARD_VALUE_10,
		CARD_VALUE_J,
		CARD_VALUE_Q,
		CARD_VALUE_K
	};
	
	protected int id;
	protected int value;
	
	public Card(int id) {
		this.id = id;
		this.value = CARD_VALUES[id];
	}
	
	public Card(int id, int value) {
		this.id = id;
		this.value = value;
	}
	
	public int getId() {
		return id;
	}
	
	public int getValue() {
		return value;
	}

}
